package com.smt.modules.bus.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;
import com.smt.common.base.BaseEntity;

import java.io.Serializable;
import java.util.Date;

/**
 * 打包文件
 * 
 * @author murong
 * @email 981620741@qq.com
 * @date 2018-11-13 11:04:05
 */
@Data
@TableName("bus_doc_page")
public class DocPageEntity extends BaseEntity {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键id
	 */
	@TableId
	private Long id;
	/**
	 * 任务id
	 */
	private Long taskId;
	/**
	 * 子任务id
	 */
	private Long subTaskId;
	/**
	 * 附件id
	 */
	private Long attachmentId;
	/**
	 * 项目id
	 */
	private Long projectId;
	/**
	 * 会员id
	 */
	private Long memberId;
	/**
	 * 0有效1无效
	 */
	private Integer valid;
	/**
	 * 创建时间
	 */
	private Date createTime;


	/**
	 * 打包名
	 */
	private String packName;

	public DocPageEntity(Long taskId, Long subTaskId, Long attachmentId, Long projectId, Long memberId, Integer valid,String packName, Date createTime) {
		this.taskId = taskId;
		this.subTaskId = subTaskId;
		this.attachmentId = attachmentId;
		this.projectId = projectId;
		this.memberId = memberId;
		this.valid = valid;
		this.packName = packName;
		this.createTime = createTime;
	}

	public DocPageEntity() {
	}

	/**
	 * 批次标记
	 */
	private String batch;

	@TableField(exist = false)
	private String fileUrl;

	@TableField(exist = false)
	private String taskName;

	@TableField(exist = false)
	private Integer type;


}
